package com.example.administrator.szb.fragments.fragment_forTab.home.model;

import android.app.Activity;

import com.example.administrator.szb.http.HttpUtil;
import com.example.administrator.szb.http.HttpUtils;
import com.example.administrator.szb.http.OnResultListener;
import com.example.administrator.szb.http.URLAddress;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by stone on 2018/1/19.
 */

public class HomeModelImpl implements HomeModel {


    @Override
    public void getData(Activity activity,OnResultListener listener) {
        Map<String, Object> map = new HashMap<String, Object>();

        map.put("code", HttpUtil.getParam());
        String url = URLAddress.URLBASE + URLAddress.URL_INDEX;
        HttpUtils.post2(activity,url, map, 0, listener);
    }
}
